查询活动发券商户号
商户创建活动后,可以通过该接口查询支付有礼的发券商户号,用于管理活动。
| 请求参数 | 类型 | 描述 |
|---|---|---|
| activity_id | string | 活动id |
| query | object | 声明请求的查询参数 |
| offset | integer | 分页页码 |
| limit | integer | 分页大小 |
php
$instance->v3->marketing->paygiftactivity->activities->_activity_id_->merchants->getAsync([
'activity_id' => '',
'query' => [
'offset' => 0,
'limit' => 20,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance->chain('v3/marketing/paygiftactivity/activities/{activity_id}/merchants')->getAsync([
'activity_id' => '',
'query' => [
'offset' => 0,
'limit' => 20,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance['v3/marketing/paygiftactivity/activities/{activity_id}/merchants']->getAsync([
'activity_id' => '',
'query' => [
'offset' => 0,
'limit' => 20,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$response = $instance->v3->marketing->paygiftactivity->activities->_activity_id_->merchants->get([
'activity_id' => '',
'query' => [
'offset' => 0,
'limit' => 20,
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/marketing/paygiftactivity/activities/{activity_id}/merchants')->get([
'activity_id' => '',
'query' => [
'offset' => 0,
'limit' => 20,
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/marketing/paygiftactivity/activities/{activity_id}/merchants']->get([
'activity_id' => '',
'query' => [
'offset' => 0,
'limit' => 20,
],
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 |
|---|---|---|
| offset | integer | 分页页码 |
| limit | integer | 分页大小 |
| total_count | integer | 总数 |
| activity_id | string | 活动id |
| data | object[] | 结果集 |
| mchid | string | 商户号 |
| merchant_name | string | 商户名称 |
| create_time | string | 创建时间 |
| update_time | string | 更新时间 |